{
  "__inputs": [
    {
      "name": "DS_SKYL_TOR1COLDB.LAN",
      "label": "SkyL tor1coldb.lan",
      "description": "",
      "type": "datasource",
      "pluginId": "vertamedia-clickhouse-datasource",
      "pluginName": "ClickHouse"
    }
  ],
  "__requires": [
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.7.3"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "panel",
      "id": "singlestat",
      "name": "Singlestat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "text",
      "name": "Text",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "vertamedia-clickhouse-datasource",
      "name": "ClickHouse",
      "version": "1.9.5"
    }
  ],
  "annotations": {
    "list": [
      {
        "$$hashKey": "object:2185",
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "description": "My ClickHouse simple dashboard",
  "editable": true,
  "gnetId": null,
  "graphTooltip": 1,
  "id": null,
  "iteration": 1589282858201,
  "links": [
    {
      "$$hashKey": "object:726",
      "icon": "external link",
      "tags": [
        "MyCH"
      ],
      "type": "dashboards"
    },
    {
      "$$hashKey": "object:3646",
      "icon": "external link",
      "tags": [
        "MyCH2"
      ],
      "type": "dashboards"
    },
    {
      "$$hashKey": "object:728",
      "icon": "external link",
      "tags": [
        "Konnect"
      ],
      "type": "dashboards"
    },
    {
      "$$hashKey": "object:727",
      "icon": "external link",
      "includeVars": false,
      "tags": [],
      "targetBlank": true,
      "title": "Meo's Site",
      "type": "link",
      "url": "https://www.xenialab.it/meo/web/index5.htm#clickhouse"
    }
  ],
  "panels": [
    {
      "content": "<div style=\"text-align: center;\">$MyInstance -- $MyVar</div>",
      "datasource": "${DS_SKYL_TOR1COLDB.LAN}",
      "gridPos": {
        "h": 2,
        "w": 20,
        "x": 0,
        "y": 0
      },
      "id": 32,
      "links": [],
      "mode": "html",
      "title": "Connection Info",
      "transparent": true,
      "type": "text"
    },
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": true,
      "colors": [
        "#d44a3a",
        "rgba(237, 129, 40, 0.89)",
        "#299c46"
      ],
      "datasource": "$MyInstance",
      "format": "s",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 2,
        "w": 4,
        "x": 20,
        "y": 0
      },
      "id": 36,
      "interval": null,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": true
      },
      "tableColumn": "",
      "targets": [
        {
          "alias": "",
          "database": "system",
          "dateLoading": false,
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "format": "table",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "group": [],
          "hide": false,
          "intervalFactor": 1,
          "metricColumn": "none",
          "query": "SELECT uptime()",
          "rawQuery": "SELECT uptime()",
          "rawSql": "SELECT\n  UNIX_TIMESTAMP(timest) as time_sec,\n  sum(variable_value+0) as value\nFROM my2.status\nWHERE $__timeFilter(timest)\n  AND variable_name like 'PROCESSES_COMMAND.Binlog Dump%'\nGROUP BY timest\nORDER BY timest ASC\n",
          "refId": "A",
          "round": "0s",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "table": "events",
          "tableLoading": false,
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        }
      ],
      "thresholds": "3600,86400",
      "title": "Uptime",
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "aliasColors": {
        "ABORTED_CLIENTS": "#bf1b00",
        "ABORTED_CLIENTS-d": "#890f02",
        "ABORTED_CONNECTS": "#f29191",
        "Aborted_clients-d": "#c15c17",
        "Aborted_connects-d": "#cca300",
        "SLOW_QUERIES": "#e24d42",
        "SLOW_QUERIES-d": "#cca300",
        "Slow_queries": "#99440a",
        "Slow_queries-d": "#890f02",
        "THREADS_CONNECTED": "#3f6833",
        "THREADS_RUNNING": "#cca300",
        "Threads_connected": "#64b0c8"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$MyInstance",
      "fill": 0,
      "fillGradient": 0,
      "gridPos": {
        "h": 6,
        "w": 10,
        "x": 0,
        "y": 2
      },
      "hiddenSeries": false,
      "id": 2,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "nullPointMode": "null as zero",
      "options": {
        "dataLinks": []
      },
      "paceLength": 10,
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "Errors",
          "color": "#C4162A",
          "fill": 0,
          "lines": false,
          "points": true,
          "yaxis": 2
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "",
          "database": "my2",
          "dateLoading": false,
          "dateTimeColDataType": "timestamp",
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "format": "time_series",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "group": [],
          "hide": false,
          "intervalFactor": 1,
          "metricColumn": "none",
          "query": "SELECT\n    $timeSeries as t, metric,\n    sum(value)\nFROM $table\nWHERE $timeFilter\n  AND metric in ('HTTPConnection', 'TCPConnection', 'InterserverConnection')\nGROUP BY t, metric\nORDER BY t, metric",
          "rawQuery": "SELECT     (intDiv(toUInt32(timestamp), 60) * 60) * 1000 as t, metric,      sum(runningDifference(value)) FROM my2.status WHERE timestamp >= toDateTime(1587723644)   AND metric in ('MergedRows') GROUP BY t, metric HAVING sum(runningDifference(value)) >=0 ORDER BY t, metric",
          "rawSql": "SELECT $__timeGroup(timest, '10m') AS time,\n       variable_name as metric,\n       avg(variable_value+0) as value\n  FROM my2.status\n WHERE $__timeFilter(timest)\n   AND variable_name in ('THREADS_CONNECTED', 'THREADS_RUNNING')\n GROUP BY 1,2\n ORDER BY 1 ASC",
          "refId": "A",
          "round": "0s",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "table": "status",
          "tableLoading": false,
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        },
        {
          "alias": "",
          "database": "system",
          "dateColDataType": "event_date",
          "dateLoading": false,
          "dateTimeColDataType": "event_time",
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "format": "time_series",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "group": [],
          "hide": false,
          "intervalFactor": 1,
          "metricColumn": "none",
          "query": "SELECT\n    $timeSeries as t,\n    count() Errors\nFROM $table\nWHERE $timeFilter\n  and exception <> ''\nGROUP BY t\nORDER BY t",
          "rawQuery": "SELECT     (intDiv(toUInt32(timestamp), 60) * 60) * 1000 as t, metric,      sum(runningDifference(value)) FROM my2.status WHERE timestamp >= toDateTime(1587723644)   AND metric in ('InsertedRows') GROUP BY t, metric HAVING sum(runningDifference(value)) >=0 ORDER BY t, metric",
          "rawSql": "SELECT\n  $__timeGroup(timest, '10m') as time,\n  substr(variable_name,1,length(variable_name)-2) as metric,\n  avg(variable_value+0) as value\nFROM my2.status\nWHERE $__timeFilter(timest)\n  and variable_name in ('SLOW_QUERIES-d', 'ABORTED_CONNECTS-d','ABORTED_CLIENTS-d')\n  and variable_value>=0\nGROUP BY 1,2\nORDER BY 1 ASC\n",
          "refId": "B",
          "round": "0s",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "table": "query_log",
          "tableLoading": false,
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [
        {
          "colorMode": "gray",
          "fill": true,
          "fromDayOfWeek": 6,
          "line": false,
          "op": "time",
          "toDayOfWeek": 7
        }
      ],
      "timeShift": null,
      "title": "Threads & Errors",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "decimals": 0,
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$MyInstance",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 6,
        "w": 10,
        "x": 10,
        "y": 2
      },
      "hiddenSeries": false,
      "id": 4,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 3,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "paceLength": 10,
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "$$hashKey": "object:3982",
          "alias": "SIZEDB.TOTAL",
          "yaxis": 2
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "",
          "database": "my2",
          "dateLoading": false,
          "dateTimeColDataType": "timestamp",
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "format": "time_series",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "group": [],
          "hide": false,
          "intervalFactor": 1,
          "metricColumn": "none",
          "query": "SELECT\n    $timeSeries as t,\n    sum(value)\nFROM $table\nWHERE $timeFilter\n  and metric like 'SIZEDB.%'\nGROUP BY t\nORDER BY t",
          "rawQuery": "SELECT     (intDiv(toUInt32(timestamp), 7200) * 7200) * 1000 as t,     sum(value) FROM my2.status WHERE timestamp >= toDateTime(1559835016)   and metric like 'SIZEDB.%' GROUP BY t ORDER BY t",
          "rawSql": "SELECT\n  $__timeGroup(timest,'24h') as time,\n  variable_name as metric,\n  avg(variable_value+0) as value\nFROM my2.status\nWHERE $__timeFilter(timest)\n  and variable_name in ('SIZEDB.TOTAL')\nGROUP BY 1,2\nORDER BY 1 ASC\n",
          "refId": "A",
          "round": "0s",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "table": "status",
          "tableLoading": false,
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": "90d",
      "timeRegions": [
        {
          "$$hashKey": "object:4020",
          "colorMode": "gray",
          "fill": true,
          "fromDayOfWeek": 6,
          "line": false,
          "op": "time",
          "toDayOfWeek": 7
        }
      ],
      "timeShift": null,
      "title": "Space usage",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:3995",
          "format": "decbytes",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "$$hashKey": "object:3996",
          "format": "bytes",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": false
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": false,
      "colors": [
        "#d44a3a",
        "rgba(237, 129, 40, 0.89)",
        "#299c46"
      ],
      "datasource": "$MyInstance",
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": true,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 6,
        "w": 4,
        "x": 20,
        "y": 2
      },
      "id": 41,
      "interval": null,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "name": "value to text",
          "value": 1
        },
        {
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": true
      },
      "tableColumn": "",
      "targets": [
        {
          "alias": "",
          "database": "my2",
          "dateLoading": false,
          "dateTimeColDataType": "timestamp",
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "format": "time_series",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "group": [],
          "hide": false,
          "intervalFactor": 1,
          "metricColumn": "none",
          "query": "SELECT\n    $timeSeries as t,\n    sum(if(metric='MarkCacheHits',value,0))/sum(multiIf(metric='MarkCacheMisses',value,metric='MarkCacheHits',value,0)) *100\nFROM $table\nWHERE $timeFilter\n  AND metric in ('MarkCacheHits', 'MarkCacheMisses')\nGROUP BY t\nORDER BY t",
          "rawQuery": "SELECT     (intDiv(toUInt32(timestamp), 7200) * 7200) * 1000 as t,     sum(if(metric='MarkCacheHits',value,0))/sum(multiIf(metric='MarkCacheMisses',value,metric='MarkCacheHits',value,0)) *100 FROM my2.status WHERE timestamp >= toDateTime(1564414216)   AND metric in ('MarkCacheHits', 'MarkCacheMisses') GROUP BY t ORDER BY t",
          "rawSql": "SELECT $__timeGroup(s1.timest,'30m') as time_sec,\n  avg(1-s1.variable_value/s2.variable_value)*100 as value\nFROM my2.status s1,  my2.status s2\nWHERE $__timeFilter(s1.timest)\n  AND s1.timest=s2.timest\n  AND s1.variable_name='INNODB_BUFFER_POOL_READS-d'\n  AND s2.variable_name='INNODB_BUFFER_POOL_READ_REQUESTS-d'\n  AND s2.variable_value>0\nGROUP BY 1\nORDER BY 1 ASC\n",
          "refId": "A",
          "round": "0s",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "table": "status",
          "tableLoading": false,
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        }
      ],
      "thresholds": "80,90",
      "title": "Cache Hits",
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "current"
    },
    {
      "aliasColors": {
        "DELETE": "#bf1b00",
        "DELETE_MULTI": "#bf1b00",
        "INSERT": "#629e51",
        "INSERT_SELECT": "#3f6833",
        "SELECT": "#5195ce",
        "UPDATE": "#cca300",
        "UPDATE_MULTI": "#f2c96d"
      },
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$MyInstance",
      "fill": 5,
      "fillGradient": 0,
      "gridPos": {
        "h": 6,
        "w": 10,
        "x": 0,
        "y": 8
      },
      "hiddenSeries": false,
      "id": 6,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null as zero",
      "options": {
        "dataLinks": []
      },
      "paceLength": 10,
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "SELECT",
          "yaxis": 1
        }
      ],
      "spaceLength": 10,
      "stack": true,
      "steppedLine": false,
      "targets": [
        {
          "alias": "",
          "database": "my2",
          "dateLoading": false,
          "dateTimeColDataType": "timestamp",
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "format": "time_series",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "group": [],
          "hide": false,
          "intervalFactor": 1,
          "metricColumn": "none",
          "query": "SELECT\n    $timeSeries as t,\n    sum(runningDifference(value))/600 SelectQuery\nFROM $table\nWHERE $timeFilter\n  AND metric in ('SelectQuery')\nGROUP BY t\nORDER BY t",
          "rawQuery": "SELECT     (intDiv(toUInt32(timestamp), 900) * 900) * 1000 as t, metric,      sum(runningDifference(value)) FROM my2.status WHERE timestamp >= toDateTime(1584655262)   AND metric in ('MergedRows') GROUP BY t, metric HAVING sum(runningDifference(value)) >=0 ORDER BY t, metric",
          "rawSql": "SELECT $__timeGroup(timest, '10m') AS time,\n       substr(variable_name,5,length(variable_name)-6) as metric,\n       avg(variable_value/600) as value\n  FROM my2.status\n WHERE $__timeFilter(timest)\n   and variable_name in ('COM_SELECT-d', 'COM_INSERT-d', 'COM_UPDATE-d', 'COM_DELETE-d')\n   and variable_value >=0\n GROUP BY 1,2\n ORDER BY 1 ASC\n",
          "refId": "A",
          "round": "0s",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "table": "status",
          "tableLoading": false,
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        },
        {
          "alias": "",
          "database": "my2",
          "dateLoading": false,
          "dateTimeColDataType": "timestamp",
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "format": "time_series",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "group": [],
          "hide": false,
          "intervalFactor": 1,
          "metricColumn": "none",
          "query": "SELECT\n    $timeSeries as t,\n    sum(runningDifference(value))/600 InsertQuery\nFROM $table\nWHERE $timeFilter\n  AND metric in ('InsertQuery')\nGROUP BY t\nORDER BY t",
          "rawQuery": "SELECT     (intDiv(toUInt32(timestamp), 900) * 900) * 1000 as t, metric,     sum(value) FROM my2.status WHERE timestamp >= toDateTime(1584655262)   AND metric = 'InsertedRows' GROUP BY t, metric ORDER BY t, metric",
          "rawSql": "SELECT $__timeGroup(timest, '10m') AS time,\n       substr(variable_name,5,length(variable_name)-6) as metric,\n       avg(variable_value/600) as value\n  FROM my2.status\n WHERE $__timeFilter(timest)\n   and variable_name in ('COM_SELECT-d', 'COM_INSERT-d', 'COM_UPDATE-d', 'COM_DELETE-d')\n   and variable_value >=0\n GROUP BY 1,2\n ORDER BY 1 ASC\n",
          "refId": "B",
          "round": "0s",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "table": "status",
          "tableLoading": false,
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [
        {
          "colorMode": "gray",
          "fill": true,
          "fromDayOfWeek": 6,
          "line": false,
          "op": "time",
          "toDayOfWeek": 7
        }
      ],
      "timeShift": null,
      "title": "SQL Commands /sec",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "format": "ops",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$MyInstance",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 6,
        "w": 10,
        "x": 10,
        "y": 8
      },
      "hiddenSeries": false,
      "id": 8,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "paceLength": 10,
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "",
          "database": "my2",
          "dateLoading": false,
          "dateTimeColDataType": "timestamp",
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "format": "time_series",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "group": [],
          "hide": false,
          "intervalFactor": 3,
          "metricColumn": "none",
          "query": "SELECT\n    $timeSeries as t, metric,\n     sum(runningDifference(value))\nFROM $table\nWHERE $timeFilter\n  AND metric in ('NetworkSendElapsedMicroseconds')\nGROUP BY t, metric\nHAVING sum(runningDifference(value)) >=0\nORDER BY t, metric",
          "rawQuery": "SELECT     (intDiv(toUInt32(timestamp), 600) * 600) * 1000 as t, metric,      sum(runningDifference(value)) FROM my2.status WHERE timestamp >= toDateTime(1564414216)   AND metric in ('NetworkSendElapsedMicroseconds') GROUP BY t, metric ORDER BY t, metric",
          "rawSql": "SELECT $__timeGroup(timest, '10m') AS time,\n       variable_name as metric,\n       avg(variable_value+0)/600 as value\n  FROM my2.status\n WHERE $__timeFilter(timest)\n   and variable_name in ('Bytes_received-d', 'Bytes_sent-d')\n GROUP BY 1,2\n ORDER BY 1 ASC\n",
          "refId": "A",
          "round": "0s",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "table": "status",
          "tableLoading": false,
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        },
        {
          "database": "my2",
          "dateLoading": false,
          "dateTimeColDataType": "timestamp",
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "format": "time_series",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "hide": false,
          "intervalFactor": 3,
          "query": "SELECT\n    $timeSeries as t, metric,\n     sum(runningDifference(value))\nFROM $table\nWHERE $timeFilter\n  AND metric in ('NetworkReceiveElapsedMicroseconds')\nGROUP BY t, metric\nHAVING sum(runningDifference(value)) >=0\nORDER BY t, metric",
          "rawQuery": "SELECT     (intDiv(toUInt32(timestamp), 600) * 600) * 1000 as t, metric,      sum(runningDifference(value)) FROM my2.status WHERE timestamp >= toDateTime(1564414216)   AND metric in ('NetworkReceiveElapsedMicroseconds') GROUP BY t, metric ORDER BY t, metric",
          "refId": "B",
          "round": "0s",
          "table": "status",
          "tableLoading": false
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [
        {
          "colorMode": "gray",
          "fill": true,
          "fromDayOfWeek": 6,
          "line": false,
          "op": "time",
          "toDayOfWeek": 7
        }
      ],
      "timeShift": null,
      "title": "Network",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "µs",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "format": "µs",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": true,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": "$MyInstance",
      "format": "decbytes",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 3,
        "w": 4,
        "x": 20,
        "y": 8
      },
      "id": 45,
      "interval": null,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "$$hashKey": "object:4056",
          "name": "value to text",
          "value": 1
        },
        {
          "$$hashKey": "object:4057",
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": true,
        "ymin": 0
      },
      "tableColumn": "",
      "targets": [
        {
          "alias": "",
          "database": "my2",
          "dateLoading": false,
          "dateTimeColDataType": "timestamp",
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "format": "time_series",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "group": [],
          "hide": false,
          "intervalFactor": 1,
          "metricColumn": "none",
          "query": "SELECT\n    $timeSeries as t,\n    avg(value) Delta\nFROM $table\nWHERE $timeFilter\n  AND metric = 'MemoryTracking'\nGROUP BY t, metric\nORDER BY t, metric",
          "rawQuery": "SELECT     (intDiv(toUInt32(timestamp), 300) * 300) * 1000 as t,     avg(value) Delta FROM my2.status WHERE timestamp >= toDateTime(1587924669)   AND metric = 'MemoryTracking' GROUP BY t, metric ORDER BY t, metric",
          "rawSql": "SELECT\n  UNIX_TIMESTAMP(timest) as time_sec,\n  variable_value+0 as value\nFROM my2.status\nWHERE $__timeFilter(timest)\n  AND variable_name ='replication_connection_status'\nORDER BY timest ASC\n",
          "refId": "A",
          "round": "0s",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "table": "status",
          "tableLoading": false,
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        }
      ],
      "thresholds": "10000000,40000000",
      "title": "Max Memory Usage",
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "$$hashKey": "object:4059",
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "max"
    },
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": false,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": "$MyInstance",
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 3,
        "w": 4,
        "x": 20,
        "y": 11
      },
      "id": 20,
      "interval": null,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "$$hashKey": "object:3944",
          "name": "value to text",
          "value": 1
        },
        {
          "$$hashKey": "object:3945",
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": true,
        "ymin": 0
      },
      "tableColumn": "",
      "targets": [
        {
          "alias": "",
          "database": "my2",
          "dateLoading": false,
          "dateTimeColDataType": "timestamp",
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "format": "time_series",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "group": [],
          "hide": false,
          "intervalFactor": 1,
          "metricColumn": "none",
          "query": "SELECT\n    $timeSeries as t,\n    sum(runningDifference(value)) as value\nFROM $table\nWHERE $timeFilter\n  AND metric='FileOpen'\nGROUP BY t\nORDER BY t",
          "rawQuery": "SELECT     (intDiv(toUInt32(timestamp), 20) * 20) * 1000 as t,     sum(runningDifference(value)) as value FROM my2.status WHERE timestamp >= toDateTime(1585217092)   AND metric='FileOpen' GROUP BY t ORDER BY t",
          "rawSql": "SELECT\n  UNIX_TIMESTAMP(timest) as time_sec,\n  variable_value/600 as value\nFROM my2.status\nWHERE $__timeFilter(timest)\n  AND variable_name='CONNECTIONS-d'\n  AND variable_value>=0\nORDER BY timest ASC\n",
          "refId": "A",
          "round": "0s",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "table": "status",
          "tableLoading": false,
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        }
      ],
      "thresholds": "",
      "title": "Max FileOpen",
      "transparent": true,
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "$$hashKey": "object:3947",
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "max"
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$MyInstance",
      "fill": 2,
      "fillGradient": 0,
      "gridPos": {
        "h": 6,
        "w": 10,
        "x": 0,
        "y": 14
      },
      "hiddenSeries": false,
      "id": 10,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 2,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "paceLength": 10,
      "percentage": false,
      "pointradius": 2,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "alias": "/_sec/",
          "color": "#3f6833",
          "yaxis": 2
        },
        {
          "alias": "Delta",
          "color": "#8AB8FF",
          "fill": 0,
          "yaxis": 2
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "database": "my2",
          "dateLoading": false,
          "dateTimeColDataType": "timestamp",
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "format": "time_series",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "hide": false,
          "intervalFactor": 1,
          "query": "SELECT\n    $timeSeries as t, metric,\n    sum(value)\nFROM $table\nWHERE $timeFilter\n  AND metric = '$MyStatistics'\nGROUP BY t, metric\nORDER BY t, metric",
          "rawQuery": "SELECT     (intDiv(toUInt32(timestamp), 600) * 600) * 1000 as t, metric,     sum(value) FROM my2.status WHERE timestamp >= toDateTime(1564414216)   AND metric = 'MemoryTracking' GROUP BY t, metric ORDER BY t, metric",
          "refId": "B",
          "round": "0s",
          "table": "status",
          "tableLoading": false
        },
        {
          "database": "my2",
          "dateLoading": false,
          "dateTimeColDataType": "timestamp",
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "format": "time_series",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "hide": false,
          "intervalFactor": 1,
          "query": "SELECT\n    $timeSeries as t,\n    sum(runningDifference(value)) Delta\nFROM $table\nWHERE $timeFilter\n  AND metric = '$MyStatistics'\nGROUP BY t, metric\nORDER BY t, metric",
          "rawQuery": "SELECT     (intDiv(toUInt32(timestamp), 600) * 600) * 1000 as t,     sum(runningDifference(value)) Delta FROM my2.status WHERE timestamp >= toDateTime(1564414216)   AND metric = 'MemoryTracking' GROUP BY t, metric ORDER BY t, metric",
          "refId": "A",
          "round": "0s",
          "table": "status",
          "tableLoading": false
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [
        {
          "colorMode": "gray",
          "fill": true,
          "fromDayOfWeek": 6,
          "line": false,
          "op": "time",
          "toDayOfWeek": 7
        }
      ],
      "timeShift": null,
      "title": "Custom Statistic",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        },
        {
          "format": "short",
          "label": "",
          "logBase": 1,
          "max": null,
          "min": "0",
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "aliasColors": {},
      "bars": false,
      "dashLength": 10,
      "dashes": false,
      "datasource": "$MyInstance",
      "fill": 1,
      "fillGradient": 0,
      "gridPos": {
        "h": 6,
        "w": 10,
        "x": 10,
        "y": 14
      },
      "hiddenSeries": false,
      "id": 46,
      "legend": {
        "avg": false,
        "current": false,
        "max": false,
        "min": false,
        "show": true,
        "total": false,
        "values": false
      },
      "lines": true,
      "linewidth": 1,
      "links": [],
      "nullPointMode": "null",
      "options": {
        "dataLinks": []
      },
      "paceLength": 10,
      "percentage": false,
      "pointradius": 5,
      "points": false,
      "renderer": "flot",
      "seriesOverrides": [
        {
          "$$hashKey": "object:2232",
          "alias": "InsertedRows",
          "yaxis": 2
        }
      ],
      "spaceLength": 10,
      "stack": false,
      "steppedLine": false,
      "targets": [
        {
          "alias": "",
          "database": "my2",
          "dateLoading": false,
          "dateTimeColDataType": "timestamp",
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "format": "time_series",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "group": [],
          "hide": false,
          "intervalFactor": 1,
          "metricColumn": "none",
          "query": "SELECT\n    $timeSeries as t, metric,\n     sum(runningDifference(value)) /600\nFROM $table\nWHERE $timeFilter\n  AND metric in ('MergedRows')\nGROUP BY t, metric\nHAVING sum(runningDifference(value)) >=0\nORDER BY t, metric",
          "rawQuery": "SELECT     (intDiv(toUInt32(timestamp), 120) * 120) * 1000 as t, metric,      sum(runningDifference(value)) /600 FROM my2.status WHERE timestamp BETWEEN toDateTime(1588715999) AND toDateTime(1588802400)   AND metric in ('MergedRows') GROUP BY t, metric HAVING sum(runningDifference(value)) >=0 ORDER BY t, metric",
          "rawSql": "SELECT $__timeGroup(timest, '10m') AS time,\n       variable_name as metric,\n       avg(variable_value+0)/600 as value\n  FROM my2.status\n WHERE $__timeFilter(timest)\n   and variable_name in ('Bytes_received-d', 'Bytes_sent-d')\n GROUP BY 1,2\n ORDER BY 1 ASC\n",
          "refId": "A",
          "round": "0s",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "table": "status",
          "tableLoading": false,
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        },
        {
          "database": "my2",
          "dateColDataType": "",
          "dateLoading": false,
          "dateTimeColDataType": "timestamp",
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "format": "time_series",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "intervalFactor": 1,
          "query": "SELECT\n    $timeSeries as t, metric,\n     sum(runningDifference(value)) /600\nFROM $table\nWHERE $timeFilter\n  AND metric in ('InsertedRows')\nGROUP BY t, metric\nHAVING sum(runningDifference(value)) >=0\nORDER BY t, metric",
          "rawQuery": "SELECT     (intDiv(toUInt32(timestamp), 120) * 120) * 1000 as t, metric,      sum(runningDifference(value)) /600 FROM my2.status WHERE timestamp BETWEEN toDateTime(1588715999) AND toDateTime(1588802400)   AND metric in ('InsertedRows') GROUP BY t, metric HAVING sum(runningDifference(value)) >=0 ORDER BY t, metric",
          "refId": "B",
          "round": "0s",
          "table": "status",
          "tableLoading": false
        }
      ],
      "thresholds": [],
      "timeFrom": null,
      "timeRegions": [
        {
          "$$hashKey": "object:2204",
          "colorMode": "gray",
          "fill": true,
          "fromDayOfWeek": 6,
          "line": false,
          "op": "time",
          "toDayOfWeek": 7
        }
      ],
      "timeShift": null,
      "title": "Merged and Inserted Rows /sec",
      "tooltip": {
        "shared": true,
        "sort": 0,
        "value_type": "individual"
      },
      "type": "graph",
      "xaxis": {
        "buckets": null,
        "mode": "time",
        "name": null,
        "show": true,
        "values": []
      },
      "yaxes": [
        {
          "$$hashKey": "object:2179",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        },
        {
          "$$hashKey": "object:2180",
          "format": "short",
          "label": null,
          "logBase": 1,
          "max": null,
          "min": null,
          "show": true
        }
      ],
      "yaxis": {
        "align": false,
        "alignLevel": null
      }
    },
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": true,
      "colors": [
        "#d44a3a",
        "rgba(237, 129, 40, 0.89)",
        "#299c46"
      ],
      "datasource": "$MyInstance",
      "format": "decbytes",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 3,
        "w": 4,
        "x": 20,
        "y": 14
      },
      "id": 37,
      "interval": null,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "$$hashKey": "object:4000",
          "name": "value to text",
          "value": 1
        },
        {
          "$$hashKey": "object:4001",
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": true,
        "ymin": 0
      },
      "tableColumn": "",
      "targets": [
        {
          "alias": "",
          "database": "my2",
          "dateLoading": false,
          "dateTimeColDataType": "timestamp",
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "format": "time_series",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "group": [],
          "hide": false,
          "intervalFactor": 1,
          "metricColumn": "none",
          "query": "SELECT\n    $timeSeries as t,\n    sum(runningDifference(value)) Delta\nFROM $table\nWHERE $timeFilter\n  AND metric = 'MergedUncompressedBytes'\nGROUP BY t, metric\nORDER BY t, metric",
          "rawQuery": "SELECT     (intDiv(toUInt32(timestamp), 300) * 300) * 1000 as t,     sum(runningDifference(value)) Delta FROM my2.status WHERE timestamp >= toDateTime(1587924688)   AND metric = 'MergedUncompressedBytes' GROUP BY t, metric ORDER BY t, metric",
          "rawSql": "SELECT\n  UNIX_TIMESTAMP(timest) as time_sec,\n  variable_value+0 as value\nFROM my2.status\nWHERE $__timeFilter(timest)\n  AND variable_name ='replication_connection_status'\nORDER BY timest ASC\n",
          "refId": "A",
          "round": "0s",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "table": "status",
          "tableLoading": false,
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        }
      ],
      "thresholds": "0.5,0.6",
      "title": "Avg Merged Bytes",
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "$$hashKey": "object:4003",
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "avg"
    },
    {
      "cacheTimeout": null,
      "colorBackground": false,
      "colorValue": false,
      "colors": [
        "#299c46",
        "rgba(237, 129, 40, 0.89)",
        "#d44a3a"
      ],
      "datasource": "$MyInstance",
      "format": "none",
      "gauge": {
        "maxValue": 100,
        "minValue": 0,
        "show": false,
        "thresholdLabels": false,
        "thresholdMarkers": true
      },
      "gridPos": {
        "h": 3,
        "w": 4,
        "x": 20,
        "y": 17
      },
      "id": 47,
      "interval": null,
      "links": [],
      "mappingType": 1,
      "mappingTypes": [
        {
          "$$hashKey": "object:3888",
          "name": "value to text",
          "value": 1
        },
        {
          "$$hashKey": "object:3889",
          "name": "range to text",
          "value": 2
        }
      ],
      "maxDataPoints": 100,
      "nullPointMode": "connected",
      "nullText": null,
      "postfix": "",
      "postfixFontSize": "50%",
      "prefix": "",
      "prefixFontSize": "50%",
      "rangeMaps": [
        {
          "from": "null",
          "text": "N/A",
          "to": "null"
        }
      ],
      "sparkline": {
        "fillColor": "rgba(31, 118, 189, 0.18)",
        "full": false,
        "lineColor": "rgb(31, 120, 193)",
        "show": true,
        "ymin": 0
      },
      "tableColumn": "",
      "targets": [
        {
          "alias": "",
          "database": "my2",
          "dateLoading": false,
          "dateTimeColDataType": "timestamp",
          "dateTimeType": "DATETIME",
          "datetimeLoading": false,
          "format": "time_series",
          "formattedQuery": "SELECT $timeSeries as t, count() FROM $table WHERE $timeFilter GROUP BY t ORDER BY t",
          "group": [],
          "hide": false,
          "intervalFactor": 1,
          "metricColumn": "none",
          "query": "SELECT\n    $timeSeries as t,\n    sum(runningDifference(value))/600 as value\nFROM $table\nWHERE $timeFilter\n  AND metric='InsertedRows'\nGROUP BY t\nORDER BY t",
          "rawQuery": "SELECT     (intDiv(toUInt32(timestamp), 20) * 20) * 1000 as t,     sum(runningDifference(value))/600 as value FROM my2.status WHERE timestamp >= toDateTime(1585217036)   AND metric='InsertedRows' GROUP BY t ORDER BY t",
          "rawSql": "SELECT\n  UNIX_TIMESTAMP(timest) as time_sec,\n  variable_value/600 as value\nFROM my2.status\nWHERE $__timeFilter(timest)\n  AND variable_name='CONNECTIONS-d'\n  AND variable_value>=0\nORDER BY timest ASC\n",
          "refId": "A",
          "round": "0s",
          "select": [
            [
              {
                "params": [
                  "value"
                ],
                "type": "column"
              }
            ]
          ],
          "table": "status",
          "tableLoading": false,
          "timeColumn": "time",
          "where": [
            {
              "name": "$__timeFilter",
              "params": [],
              "type": "macro"
            }
          ]
        }
      ],
      "thresholds": "",
      "title": "Avg Inserted /sec",
      "transparent": true,
      "type": "singlestat",
      "valueFontSize": "80%",
      "valueMaps": [
        {
          "$$hashKey": "object:3891",
          "op": "=",
          "text": "N/A",
          "value": "null"
        }
      ],
      "valueName": "avg"
    },
    {
      "content": "",
      "datasource": "${DS_SKYL_TOR1COLDB.LAN}",
      "gridPos": {
        "h": 1,
        "w": 10,
        "x": 0,
        "y": 20
      },
      "id": 44,
      "links": [],
      "mode": "html",
      "title": "$MyVar2",
      "transparent": true,
      "type": "text"
    },
    {
      "content": "<a href=\"https://github.com/meob/my2Collector\">Github</a>",
      "datasource": "${DS_SKYL_TOR1COLDB.LAN}",
      "gridPos": {
        "h": 1,
        "w": 10,
        "x": 10,
        "y": 20
      },
      "id": 40,
      "links": [],
      "mode": "html",
      "title": "This dashboard uses CH2coll collector (https://github.com/meob/ch2Collector)",
      "transparent": true,
      "type": "text"
    },
    {
      "content": "<a href=\"https://github.com/meob/my2Collector\">Github</a>",
      "datasource": "${DS_SKYL_TOR1COLDB.LAN}",
      "gridPos": {
        "h": 1,
        "w": 4,
        "x": 20,
        "y": 20
      },
      "id": 48,
      "links": [],
      "mode": "html",
      "title": "by XeniaLAB",
      "transparent": true,
      "type": "text"
    }
  ],
  "refresh": false,
  "schemaVersion": 22,
  "style": "dark",
  "tags": [
    "MyCH",
    "Konnect"
  ],
  "templating": {
    "list": [
      {
        "current": {
          "selected": false,
          "tags": [],
          "text": "SkyL tor1clickhouse1.lan",
          "value": "SkyL tor1clickhouse1.lan"
        },
        "hide": 1,
        "includeAll": false,
        "label": null,
        "multi": false,
        "name": "MyInstance",
        "options": [],
        "query": "vertamedia-clickhouse-datasource",
        "refresh": 1,
        "regex": "/.*/",
        "skipUrlSync": false,
        "type": "datasource"
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "$MyInstance",
        "definition": "select distinct metric from my2.status where metric is not null and metric <>'' order by 1",
        "hide": 0,
        "includeAll": false,
        "index": -1,
        "label": "Custom Statistic",
        "multi": false,
        "name": "MyStatistics",
        "options": [],
        "query": "select distinct metric from my2.status where metric is not null and metric <>'' order by 1",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "$MyInstance",
        "definition": "select hostName()",
        "hide": 2,
        "includeAll": false,
        "index": -1,
        "label": null,
        "multi": false,
        "name": "MyVar",
        "options": [],
        "query": "select hostName()",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "$MyInstance",
        "definition": "select concat('ClickHouse version: ',version(), '   Created at: ', toString(min(metadata_modification_time) )  )   from system.tables  where metadata_modification_time<>'0000-00-00 00:00:00'",
        "hide": 2,
        "includeAll": false,
        "index": -1,
        "label": null,
        "multi": false,
        "name": "MyVar2",
        "options": [],
        "query": "select concat('ClickHouse version: ',version(), '   Created at: ', toString(min(metadata_modification_time) )  )   from system.tables  where metadata_modification_time<>'0000-00-00 00:00:00'",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-7d",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ],
    "time_options": [
      "5m",
      "15m",
      "1h",
      "6h",
      "12h",
      "24h",
      "2d",
      "7d",
      "30d"
    ]
  },
  "timezone": "",
  "title": "3CH Simple Dashboard",
  "uid": "Bx160sMWk",
  "variables": {
    "list": []
  },
  "version": 92
}